package com.pipi.biyesheji.dao.manager;

import com.pipi.biyesheji.dao.support.PageResult;
import com.pipi.biyesheji.dao.model.ReviewDO;
import com.pipi.biyesheji.dao.query.ReviewQuery;

import java.util.List;


/**
 * Manager for Review.
 */
public interface ReviewManager {
    /**
     * query count by query condition.
     */
    int countByQuery(ReviewQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(ReviewQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    long insertSelective(ReviewDO record);

    /**
     * select by query condition.
     */
    List<ReviewDO> selectByQuery(ReviewQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<ReviewDO> selectByQueryWithPage(ReviewQuery query);

    /**
     * select by primary key.
     */
    ReviewDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( ReviewDO record,  ReviewQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(ReviewDO record, ReviewQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(ReviewDO record);
}